package com.yupi.springbootinit.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yupi.springbootinit.mapper.GenHistoryMapper;
import com.yupi.springbootinit.model.entity.GenHistory;
import com.yupi.springbootinit.model.vo.GenHistoryVO;
import com.yupi.springbootinit.service.GenHistoryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author lfc
* @description 针对表【gen_history】的数据库操作Service实现
* @createDate 2023-11-02 20:26:23
*/
@Service
public class GenHistoryServiceImpl extends ServiceImpl<GenHistoryMapper, GenHistory>
    implements GenHistoryService {

    @Resource
    private GenHistoryMapper genHistoryMapper;
    @Override
    public List<GenHistoryVO> queryGenHistoryData(Long userId) {
        return genHistoryMapper.queryGenHistoryData(userId);
    }

    @Override
    public List<GenHistoryVO> queryGenHistoryData() {
        return genHistoryMapper.queryAllGenHistoryData();
    }
}




